/* $Id: IoCpp.h 27 2011-09-16 13:28:08Z skagget77 $ */

/*!
 * \file
 * \author  Johan Andersson <skagget77@gmail.com>
 * \date    Mon Oct 05 18:30 2009
 * \ingroup IoCpp
 * \brief   IoCpp export/import API and linking rules.
 */

#if !defined(IOCPP_IOCPP_H)
#define IOCPP_IOCPP_H

// Export/Import API and linking rules.
#if defined(IOCPP_EXPORT)
#if defined(IOCPP_DLL)
#define IOCPP_API __declspec(dllexport)
#else
#define IOCPP_API
#endif
#else
#if defined(IOCPP_DLL)
#define IOCPP_API __declspec(dllimport)
#else
#define IOCPP_API
#endif
#if defined(NDEBUG)
#if defined(IOCPP_DLL)
#pragma comment(lib, "IoCpp.lib")
#else
#pragma comment(lib, "IoCpp_static.lib")
#endif
#else
#if defined(IOCPP_DLL)
#pragma comment(lib, "IoCppd.lib")
#else
#pragma comment(lib, "IoCppd_static.lib")
#endif
#endif
#endif

// Disable warnings.
#if defined(IOCPP_DLL)
#pragma warning(disable: 4251)
#pragma warning(disable: 4275)
#endif

#endif   // IOCPP_IOCPP_H
